<template>
    <div id="home">
        <nav class="function">
            <router-link to="/">租</router-link>
            <router-link to="/">买</router-link>
            <router-link to="/">卖</router-link>
        </nav>
        <div class="hot-bags">
            <h1>为你推荐</h1>
            <ul>
                <li>啊啊啊</li>
                <li>包包吧</li>
                <li>吃吃吃</li>
                <li>淡淡的</li>
                <li>饿饿饿</li>
                <li>放放风</li>
            </ul>
        </div>
    </div>
</template>

<script>
export default {
    name: 'HelloWorld',
        data () {
            return {
            msg: 'Welcome to Your Vue.js App'
        }
    }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
#home {
    .function {
        a {
            width: 33.33%;
            height: 50px;
            background: #ccc;
            color: #fff;
        }
    }
    .hot-bags {
    padding: 10px;
        ul {
            li {
                width: 48%;
                height: 200px;
                background: pink;
                box-sizing: border-box;
                margin-bottom: 10px;
                &:nth-child(odd) {
                    float: left;
                }
                &:nth-child(even) {
                    float: right;
                }
            }
        }
    }
}
</style>
